<template>
  <el-row class="moneyxx">
    <el-row>
      <el-col :offset=1 :span=17 class="tops">江苏省苏州市的李先生寻找保本保收益型代炒股理财</el-col>
      <el-col :span=5 :offset=1 class="tops" style="text-align:center">标号：201909061600002</el-col>
    </el-row>
    <el-row class="zj" type="flex" align="middle">
      <el-col :span=5 :offset=1 style="text-align:center">
        <span class="bigw" style="color:#F40909">{{value[0]}}%</span>
        <span class="zword" :class="{colorbrr:p,bigwx:!p}">{{value[1]}}{{value[2]}}%</span>
      </el-col>
      <el-col :span=3 :offset=3 class="zword" style="text-align:center">{{time}}个月</el-col>
      <el-col :span=5 :offset=2 class="zwordd" style="text-align:center">￥{{money}}万</el-col>
      <el-col :span=4 :offset=3>
        <el-button class="btn" :style="color" style="margin-right:10px">{{context}}</el-button>
      </el-col>
    </el-row>
    <el-row type="flex" align="middle" class="bott">
      <el-col :span=4 :offset=1 style="text-align:center">{{config[0]}}</el-col>
      <el-col :span=3 :offset=3 style="text-align:center">{{config[1]}}</el-col>
      <el-col :span=5 :offset=2 style="text-align:center">{{config[2]}}</el-col>
      <el-col :span=4 :offset=3>
        <div class="ww" style="margin-right:10px">{{config[3]}}</div>
      </el-col>
    </el-row>
  </el-row>
</template>

<script>
export default {
  props: {
    config:Array,
    p:{
      type:Boolean,
      default: false
    },
    color: String,
    value: Array,
    time: Number,
    money: Number,
    context: String,
  }
};
</script>

<style scoped>
.moneyxx {
  width: 100%;
  height: 120px;
  padding: 5px 0px;
  background-color: #ffffff;
  border-bottom: 1px dotted #797979;
}
.moneyxx .tops {
  font-size: 14px;
  line-height: 22px;
  color: #000000;
}
.moneyxx .zj {
  height: 44px;
  padding: 5px 0;
  margin-top: 5px;
}
.moneyxx .bigw {
  font-size: 35px;
  line-height: 28px;
}
.moneyxx .zword {
  font-size: 25px;
  line-height: 28px;
}
.moneyxx .zwordd {
  font-size: 35px;
  line-height: 28px;
}
.btn {
  width: 140px;
  height: 45px;
  font-size: 25px;
  color: #ffffff;
}
.ww {
  width: 150px;
  text-align: center;
}
.moneyxx .bott {
  padding: 10px 0;
}
.moneyxx .endon {
  font-size: 14px;
  line-height: 22px;
  color: #000000;
}
.colorbrr {
  color: #0f6bdf;
}
.bigwx {
  font-size: 35px !important ;
  color: #f40909;
}
</style>